<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }
    #toggler {
        display: none;
    }
    header {
        background-color: #000;
        height: 44px;
        padding: 0 18px;
    }
    .hamurger-conainer {
        width: 20px;
        height: 20px;
        position: relative;
        top: 16px;
    }
    .hamurger-conainer span {
        display: block;
        height: 1px;
        background-color: #fff;
        position: relative;
        /* transition delay .3s*/
        transition: transform .3s ease-in-out, top .3s ease-in-out .3s, opacity .3s ease-in-out .3s;
        opacity: 1;
        top: 0;
    }
    .hamurger-conainer span:nth-of-type(2) {
        margin-top: 7px;
    }
    .hamurger-conainer span:nth-of-type(3) {
        margin-top: 7px;
    }
    #toggler:checked + label .hamurger-conainer span:nth-of-type(1) {
        transform: rotate(45deg);
        top: 4px;
        transition: top .3s ease-in-out,transform .3s ease-in-out .3s;
    }
    #toggler:checked + label .hamurger-conainer span:nth-of-type(2) {
        transform: rotate(-45deg);
        top: -4px;
        transition: top .3s ease-in-out,transform .3s ease-in-out .3s;
    }

    #toggler:checked + label .hamurger-conainer span:nth-of-type(3) {
       opacity: 0;
       transition: opacity .3s ease-in-out;
    }

    .nav-items {
        background-color: rgba(0, 0, 0, .85);
        width: 100%;
        max-height: 100vh;
        position: absolute;
        top: 44px;
        left: 0;
        transform: scaleY(0);
        transition: transform .3s ease-in-out .3s, opacity .3s ease-in-out .3s;
        transform-origin: top left;
        opacity: 0;
        box-sizing: border-box;
    }

    #toggler:checked ~ .nav-items {
        transform: scaleY(1);
        opacity: 1;
    }
    .nav-items > ul {
        margin-top: 1rem;
        color: #ffffff;
    }
</style>

<body>
    <header>
        <input type="checkbox" id="toggler">
        <label for="toggler">
            <div class="hamurger-conainer">
                <span></span>
                <span></span>
                <span></span>
            </div>
        </label>
        <div class="nav-items">
            <ul>Home</ul>
            <ul>iPhone 11</ul>
            <ul>ipad</ul>
            <ul>Mac</ul>
            <ul>Tv</ul>
        </div>
    </header>
</body>
</html>